/*
 * @Description: 接收文
 * @Author: Zzt
 * @Date: 2023-01-13 17:06:44
 * @LastEditTime: 2023-01-13 18:09:44
 */
import { lazy } from 'react';
import Layout from '@/layout';
import lazyLoad from '../components/lazyLoad';

// 档案类型配置
export const ReceiveAndSendArcType = lazy(
  () => import(/* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/ArcType/ArcTypeMain')
);

// 元数据设置
export const ReceiveAndSendMetadata = lazy(
  () =>
    import(/* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/Metadata/MetadataMain')
);

// 元数据业务设置
export const ReceiveAndSendMetadataBusiness = lazy(
  () =>
    import(
      /* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/MetadataBusiness/MetadataBusinessMain'
    )
);

// 开放字段设置
export const ReceiveAndSendOpening = lazy(
  () => import(/* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/Opening/OpeningMain')
);

// 显示排序设置
export const ReceiveAndSendSorting = lazy(
  () => import(/* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/Sorting/SortingMain')
);

// 映射关系设置
export const ReceiveAndSendMapping = lazy(
  () =>
    import(
      /* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/MappingRelation/MappingRelationMain'
    )
);

// 录入界面设置
export const ReceiveAndSendDesign = lazy(
  () =>
    import(
      /* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/DescDesign/DescDesignMain'
    )
);
export const ReceiveAndSendCollection = lazy(
  () =>
    import(
      /* webpackChunkName: "ReceiveAndSend" */ '@/view/receiveAndSend/ReceiveAndSendCollection/ReceiveAndSendCollectionMain'
    )
);

const ReceiveAndSendRoutes: any[] = [
  {
    path: '/receiveAndSend',
    element: <Layout />,
    meta: {
      title: '系统配置'
    },
    children: [
      {
        path: 'metadata',
        element: lazyLoad(ReceiveAndSendMetadata),
        meta: {
          title: '单位管理'
        }
      }
    ]
  }
];

export default ReceiveAndSendRoutes;
